package com.yixing.demo.mapper;

import com.yixing.demo.model.LoveMusic;
import com.yixing.demo.model.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LoveMusicMapper {
    LoveMusic inspectMusicByDoubleId(Integer userId, Integer musicId);
    Integer increaseLoveMusic(Integer userId, Integer musicId);

    List<Music> seekLoveMusicByNoTitle(Integer userId);

    List<Music> seekLoveMusicByTitle(Integer userId, String title);

    Integer deleteLoveMusic(Integer userId, Integer musicId);

    Integer deleteLoveMusicByMusicId(Integer musicId);
}
